/**
 * 
 */
package com.wubo.sec.util;

/**
 * @author wubo
 * @CreateDate 2010-7-25
 * @version 1.0.01
 */
public class UUID {
	
	public static String uuid(byte[] bytes){
		java.util.UUID uuid = java.util.UUID.nameUUIDFromBytes(bytes);
		return uuid.toString().replace("-", "");
	}
	
	public static String uuid(){
		java.util.UUID uuid = java.util.UUID.randomUUID();
		return uuid.toString().replace("-", "");
	}
}
